﻿using Microsoft.EntityFrameworkCore;
using RBAC_Uthorization.Domain.Entity;

namespace RBAC_Uthorization.Infrstructre
{
    public class EFCoreContext : DbContext
    {
        public EFCoreContext(DbContextOptions<EFCoreContext> options) : base(options)
        {
        }
        public virtual DbSet<sys_menu> sys_menu { get; set; }//菜单表
        public virtual DbSet<sys_role> sys_role { get; set; }//角色表
        public virtual DbSet<sys_role_menu> sys_role_menu { get; set; }//角色菜单关联表
        public virtual DbSet<sys_user> sys_user { get; set; }//用户表
        public virtual DbSet<sys_user_role> sys_user_role { get; set; }//用户角色关联表
        public virtual DbSet<sys_offic> sys_offic { get; set; }//公司表
        public virtual DbSet<sys_function> sys_function { get; set; }//操作权限表
        public virtual DbSet<sys_role_menu_fun> sys_role_menu_fun { get; set; }//角色菜单操作
        public virtual DbSet<sys_System> sys_System { get; set; }//系统


    }
}
